/*
 * @Date: 2023-05-11 11:42:52
 * @LastEditors: zhangxc 13083637819@163.com
 * @LastEditTime: 2023-05-11 18:15:21
 * @FilePath: \px-bi-front\src\const\crud\majorProject.js
 */
export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  dialogDirection: "rtl",
  searchMenuSpan: 6,
  column: [
    {
      type: "input",
      label: "项目名称",
      prop: "name",
      search: true,
      span: 24,
    },
    {
      type: "input",
      label: "总投资",
      prop: "investment",
      span: 24,
    },
    {
      type: "input",
      label: "联系电话",
      prop: "phone",
      span: 24,
    },
    {
      type: "input",
      label: "联系地址",
      prop: "address",
      span: 24,
    },
    {
      type: "input",
      label: "创建时间",
      prop: "createTime",
      display: false,
      span: 24,
    },
    {
      type: "input",
      label: "排序",
      prop: "sort",
      span: 24,
    },
    {
      label: "封面图",
      prop: "contentImg",
      type: "upload",
      action: "/fastfile/upload/szgk-1256675456",
      listType: "picture-card",
      dataType: "string",
      limit: 1,
      propsHttp: {
        res: "data",
        url: "kpath",
      },
      span: 24,
    },
    {
      type: "input",
      label: "项目介绍",
      prop: "content",
      component: "avueUeditor",
      slot: true,
      hide: true,
      options: {
        action: "/fastfile/upload/szgk-1256675456",
        props: {
          res: "data", // 解析文件上传后的respose.JSON
          url: "kpath", // 解析responseJSON==> data.fileUrl
        },
      },
      span: 24,
    },
  ],
};
